Remove level in nested dictionary